package com.example.anliku.mapper;

import com.example.anliku.entity.ExampleKnowledge;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ExampleKnowledgeMapper {
    int deleteByPrimaryKey(Integer exampleKnowledgeId);

    int insert(ExampleKnowledge record);

    int insertSelective(ExampleKnowledge record);

    ExampleKnowledge selectByPrimaryKey(Integer exampleKnowledgeId);

    int updateByPrimaryKeySelective(ExampleKnowledge record);

    int updateByPrimaryKey(ExampleKnowledge record);

    int updateBatch(List<ExampleKnowledge> list);

    int batchInsert(@Param("list") List<ExampleKnowledge> list);

    List<ExampleKnowledge> selectAllByExampleKnowledgeExampleId(@Param("exampleKnowledgeExampleId") Integer exampleKnowledgeExampleId);

    int insertList(@Param("list") List<ExampleKnowledge> list);

    List<ExampleKnowledge> selectAll();

    List<ExampleKnowledge> selectAllByExampleKnowledgeName(@Param("exampleKnowledgeName") String exampleKnowledgeName);

    int deleteByExampleKnowledgeName(@Param("exampleKnowledgeName") String exampleKnowledgeName);

    List<ExampleKnowledge> selectAllByExampleKnowledgeNameAndExampleKnowledgeExampleId(@Param("exampleKnowledgeName")String exampleKnowledgeName,@Param("exampleKnowledgeExampleId")Integer exampleKnowledgeExampleId);

    int deleteByExampleKnowledgeExampleId(@Param("exampleKnowledgeExampleId")Integer exampleKnowledgeExampleId);



}